package net.cityside.summer.domain;

import java.io.Serializable;
import java.util.Date;

public class GalleryImg implements Serializable {

	private static final long serialVersionUID = 1L;

	private long id;

	private String filename;

	private String title;

	private User submitter;

	private Date uploadTime;

	public GalleryImg() {
	}

	public GalleryImg(String filename) {
		this.filename = filename;
		this.title = null;
		this.uploadTime = new Date();
	}

	public GalleryImg(String filename, User submitter) {
		this.filename = filename;
		this.title = null;
		this.submitter = submitter;
		this.uploadTime = new Date();
	}

	public GalleryImg(String filename, String title) {
		this.filename = filename;
		this.title = title;
	}

	public GalleryImg(long id, String filename, String title, User submitter,
			Date uploadTime) {
		super();
		this.id = id;
		this.filename = filename;
		this.title = title;
		this.submitter = submitter;
		this.uploadTime = uploadTime;
	}

	@Override
	public String toString() {
		return "GalleryImg [id=" + id + ", filename=" + filename + ", title="
				+ title + ", submitter=" + submitter + ", uploadTime="
				+ uploadTime + "]";
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public User getSubmitter() {
		return submitter;
	}

	public void setSubmitter(User submitter) {
		this.submitter = submitter;
	}

	public Date getUploadTime() {
		return uploadTime;
	}

	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}

}
